Gbp-Pq: Name fix-system-lpsolve-build.diff
$(gb_STDLIBS) \
))
+ifeq ($(SYSTEM_LPSOLVE),YES)
+$(eval $(call gb_Library_add_ldflags,solver, \
+ /usr/lib/lp_solve/liblpsolve55.so -Wl$(COMMA)-rpath=/usr/lib/lp_solve \
+))
+else
$(eval $(call gb_Library_use_external,solver,lpsolve55))
+endif
$(eval $(call gb_Library_add_exception_objects,solver,\
sccomp/source/solver/solver \
MYTHESLIB=-lmythes-1.2
.ENDIF
PYUNOLIB=-lpyuno
+.IF "$(SYSTEM_LPSOLVE)" == "YES"
+# FIXME. Even with -L/usr/lib/lp_solve -llpsolve55 the liblpsolve55.a from
+# /usr/lib gets picked and we get a static link...
+LPSOLVELIB = /usr/lib/lp_solve/liblpsolve55.so -Wl,-rpath=/usr/lib/lp_solve
+.ELSE
LPSOLVELIB=-llpsolve55
+.ENDIF
SOFFICELIB=-lsofficeapp
UNOPKGAPPLIB=-lunopkgapp
TESTLIB=-ltest